import React from 'react';
import ReactDOM from 'react-dom';
// 连接redux和react
import { Provider } from 'react-redux';
// 导入 redux store
import { store } from './store/store';

import { ConfigProvider } from 'antd';

// 组件库样式
import 'antd/dist/antd.min.css';

// 导入启动文件样式
import './index.scss';

// 导入根组件
import { App } from './App';

// console.log('index.js');

import moment from 'moment';
import 'moment/locale/zh-cn';
import locale from 'antd/lib/locale/zh_CN';

// 渲染根组件
ReactDOM.render(
  <Provider store={store}>
    <ConfigProvider locale={locale}>
      <App />
    </ConfigProvider>
  </Provider>,
  document.getElementById('root')
);
